package com.qy139.sso.feign;

import com.qy139.entity.TabUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.security.core.parameters.P;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("auth")
public interface UserService {
    @PostMapping("/tab-user/getByUserName")
    TabUser getByName(@RequestParam("s") String s);

    @PostMapping("/tab-user/findRolesById")
    List<String> findRolesById(@RequestParam("id") Integer id);

    @PostMapping("/tab-menu/findMenuById")
    List<String> findMenusById(@RequestParam("id") Integer id);
}
